package com.hwl.demo4.service.impl;

import com.hwl.demo4.entity.SchoolGirl;
import com.hwl.demo4.service.IGiveGift;

/**
 * 追求者类
 *
 * @author sentry
 * @since 2023-03-18
 */
public class Pursuit implements IGiveGift {

    private final SchoolGirl mm;

    public Pursuit(SchoolGirl mm) {
        this.mm = mm;
    }

    @Override
    public void giveDolls() {
        System.out.println(this.mm.getName() + "，你好！送你洋娃娃");
    }

    @Override
    public void giveFlowers() {
        System.out.println(this.mm.getName() + "，你好！送你鲜花");
    }

    @Override
    public void giveChocolate() {
        System.out.println(this.mm.getName() + "，你好！送你巧克力");
    }
}
